﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>hubPage</title>

    <link href="/pages/hub/hub.css" rel="stylesheet" />
    <script src="/js/hl.js"></script>
    <script src="/pages/hub/hub.js"></script>
</head>
<body>
    <div class="hubpage fragment">
        <header aria-label="Header content" role="banner">
            <button class="backbutton" data-win-control="WinJS.UI.BackButton"></button>
            <h1 class="titlearea win-type-ellipsis">
                <span class="pagetitle">Hyperlapse</span>
            </h1>
        </header>
        <section aria-label="Main content" role="main">
            <div class="hub" data-win-control="WinJS.UI.Hub">
                <div class="hero" data-win-control="WinJS.UI.HubSection">
                    <div class="image-box">
                        <div class="heroimage" id="heroimage1"></div>
                        <div class="heroimage" id="heroimage2"></div>
                        <div class="heroimage" id="heroimage3"></div>
                        <div class="heroimage" id="heroimage4"></div>
                        <div class="heroimage" id="heroimage5"></div>
                        <div class="heroimage" id="heroimage6"></div>
                        <div class="heroimage" id="heroimage7"></div>
                        <div class="heroimage" id="heroimage8"></div>
                        <div class="heroimage" id="heroimage9"></div>
                        <div class="heroimage" id="heroimage10"></div>
                    </div>
                </div>
                <div class="section section1" 
                     data-win-control="WinJS.UI.HubSection" 
                     data-win-options="{ onheaderinvoked: select('.pagecontrol').winControl.viewerinvoked }" 
                     data-win-res="{ winControl: {'header': 'Section1'} }">
                    <div class="hubsection hubsection1">
                        <div class="hubitemtemplate viewerhubitem" data-win-control="WinJS.Binding.Template">
                            <div class="hubitem vieweritem">
                                <div class="text" data-win-bind="innerHTML: title"></div>
                                <div class="index invisible" data-win-bind="innerHTML: id"></div>
                            </div>
                        </div>
                        <div class="preview previewimages">
                            <div class="holder imageholder"></div>
                        </div>
                        <div class="listcontainer">
                        	<div class="sometext">Popular Presets</div>
                            <div 
                                 class="hublist"
                                 data-win-control="WinJS.UI.ListView"
                                 data-win-options="{ itemDataSource: HL.hubSection1Elements.dataSource, 
                                 itemTemplate: select('.viewerhubitem'),
                                 layout: { type: WinJS.UI.GridLayout } }"
                            ></div>
                        </div>
                    </div>
                </div>
                <div class="section section2"
                     data-win-control="WinJS.UI.HubSection"
                     data-win-options="{ onheaderinvoked: select('.pagecontrol').winControl.mapperinvoked }"
                     data-win-res="{ winControl: {'header': 'Section2'} }">
                    <div class="hubsection hubsection2">
                        <div class="hubitemtemplate mapperhubitem" data-win-control="WinJS.Binding.Template">
                            <div class="hubitem mapperitem">
                                <div class="text" data-win-bind="innerHTML: name"></div>
                                <div class="id hidden" data-win-bind="innerHTML: id"></div>
                            </div>
                        </div>
                        <div class="preview previewmap">
                            <div class="holder mapholder">
                                <x-ms-webview class="webview"></x-ms-webview>
                            </div>
                        </div>
                        <div class="listcontainer">
                            <div class="sometext">Popular Locations</div>
                            <div class="hublist"
                                 data-win-control="WinJS.UI.ListView"
                                 data-win-options="{ itemDataSource: HL.hubSection2Elements.dataSource,
                                 itemTemplate: select('.mapperhubitem'),
                                 layout: { type: WinJS.UI.GridLayout } }"></div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
</body>
</html>
